package designpatterns.decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2022/2/14 8:44
 */
@Slf4j
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape shape) {
        super(shape);
    }

    @Override
    public void draw() {
        decoratorShape.draw();
        setRedBorder(decoratorShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        log.info("Border Color: Red");
    }
}
